import request from '@/utils/request'

export default {
    getCommentList: (params) => {
        return request({
            url: '/comment/getCommentList',
            method: 'get',
            params
        })
    },
    add: (params) => {
        return request({
            url: '/comment/add',
            method: 'post',
            data: params
        })
    },
    remove: (id) => {
        return request({
            url: `/comment/delete/${id}`,
            method: 'delete'
        })
    }
}
